﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace zUfDsl
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            var dt = new DataTable();
            for(int j = 0;j< 10; j++)
            {
                dt.Columns.Add($"c{j}");
            }

            for (int i=0;i< 50;i++)
            {
                var row = dt.NewRow();
                for(int j=0;j<10;j++)
                {
                    row[j] = i * 100 + j;
                }
                dt.Rows.Add(row);
            }

            //this.superGridSum1.SumColumns = new string[] { "c0", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "c10" };
            //this.superGridSum1.IsShowSumRow = true;
            //this.superGridSum1.DataSource = dt;
            //this.superGridSum1.IsShowSumRow = true;
        }

        private void Form1PaddingChanged(object sender, EventArgs e)
        {

        }

        private void Form1Resize(object sender, EventArgs e)
        {
        }

        private void button1Click(object sender, EventArgs e)
        {
            //this.superGridSum1.SumData();
        }

    }
}
